#ifndef DOUBAN_DOUBANPLUGIN_H
#define DOUBAN_DOUBANPLUGIN_H
#include "twcore/IPlugin.h"
namespace Douban
{
	class DoubanContext;
	class DoubanPlugin: public TWCore::IPlugin
	{
		public:
			DoubanPlugin();
			virtual ~DoubanPlugin();

			void initialize();
			bool getConfigWidget( QList<TWCore::IConfigWidget*>& );

			TWCore::IContext* createNewContext();
			TWCore::IContext* createContext( const QByteArray& info );
			void deleteContext( TWCore::IContext* context );
			void unloadContext( TWCore::IContext* context );
		private:
			DoubanContext* m_context;
	};

}

#endif /* DOUBANPLUGIN_H_ */
